/* 全局样式配置 */
:root {
    --color-primary: #10b981;
    --color-primary-dark: #059669;
    --color-primary-light: #34d399;
    --color-secondary: #06b6d4;
    --color-accent: #f59e0b;
    --color-danger: #ef4444;
    --color-success: #10b981;
    --color-neutral: #f9fafb;
    --color-neutral-dark: #f3f4f6;
}

/* 自定义样式类 */
.card-modern {
    @apply bg-white rounded-2xl border border-gray-100 shadow-soft transition-all duration-300;
}

.card-modern:hover {
    @apply shadow-medium border-primary/20;
}

.glass-effect {
    @apply bg-white/80 backdrop-blur-md;
}

.gradient-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.btn-primary {
    @apply px-6 py-3 rounded-xl font-medium text-white shadow-medium hover:shadow-large transition-all duration-300;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-primary:hover {
    @apply scale-105;
}

.btn-primary:active {
    @apply scale-95;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

/* 页面过渡 */
.page {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page.hidden {
    display: none;
}

/* 轮播图指示器 */
.carousel-indicator {
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    width: 2rem;
    background-color: var(--color-primary);
}

/* 轮播图项目 */
.carousel-item {
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* 导航栏 */
.nav-item {
    transition: all 0.3s ease;
}

/* 模态框 */
#contact-modal,
#publish-modal {
    transition: opacity 0.3s ease;
}

/* 按钮交互效果 */
button {
    transition: all 0.2s ease;
}

button:active {
    transform: scale(0.95);
}

/* 容器样式 */
.container-app {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
}

/* 底部导航栏间距 */
.pb-nav {
    padding-bottom: 5rem;
}

/* 隐藏滚动条 */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

